<template>
	<view class="product-scheduling">
		<!-- <AddBtn :tab='1' /> -->
		<!-- <view class="content" > -->
		<scroll-view scroll-y="true" class="swiper">
			<view class="content" v-for="(item, index) in allRecords" :key="index">
				<Scheduling 
					:goodsList="goodsList" 
					:gid1="item.gid"
					:start="item.start" 
					:end="item.end" 
					:scale="item.scale"
				 />				
			</view>
		<!-- </view> -->
		</scroll-view>
	</view>
</template>

<script>
	// import AddBtn from './AddBtn'
	import Scheduling from './Scheduling'
	
	export default {
		props: {
			allRecords: {
				type: Array,
				default: []
			},
			goodsList: {
				type: Array,
				default: []
			}
		},
		data() {
			return {

			}
		},
		methods: {
			
		},
		components: {
			// AddBtn,
			Scheduling
		}
	}
</script>

<style lang="less" scoped>
	.product-scheduling {
		height: 100vh;
		padding-top: 20rpx;
		// margin-bottom: 300rpx;
		
		.content {
			// height: 100%;
			
			
		}
		
		.content:last-child {
			margin-bottom: 190rpx;
		}
	}
</style>